package com.objectproject.main.model;

import com.objectproject.main.exception.PropertyRefineException;


public class MyObjectCommandModel extends MyPropertiesCommandModel {
	

	private long objectModificationAuthId;
	private long objectInheritanceAuthId;
	private boolean isInterface;
	private boolean isFinal;
	private boolean isAnonymous;
	
	public MyObjectCommandModel() {
		super();
	}


	public void refine() throws PropertyRefineException{
		super.refine();
	}



	public long getObjectModificationAuthId() {
		return objectModificationAuthId;
	}

	public void setObjectModificationAuthId(long objectModificationAuthId) {
		
		this.objectModificationAuthId = objectModificationAuthId;
	}

	public long getObjectInheritanceAuthId() {
		return objectInheritanceAuthId;
	}

	public void setObjectInheritanceAuthId(long objectInheritanceAuthId) {
		this.objectInheritanceAuthId = objectInheritanceAuthId;
	}

	public boolean isInterface() {
		return isInterface;
	}

	public void setInterface(boolean isInterface) {
		this.isInterface = isInterface;
	}

	public boolean isFinal() {
		return isFinal;
	}

	public void setFinal(boolean isFinal) {
		this.isFinal = isFinal;
	}

	public boolean isAnonymous() {
		return isAnonymous;
	}

	public void setAnonymous(boolean isAnonymous) {
		this.isAnonymous = isAnonymous;
	}

	
	@Override
	public String toString() {
		
		
		StringBuilder sb = new StringBuilder();
		
		
		sb.append("objectModificationId : " + this.objectModificationAuthId + "\n");
		sb.append("objectInheritanceAuthId : " + this.objectInheritanceAuthId + "\n");
		sb.append("isAnonymous : " + this.isAnonymous + "\n");
		sb.append("isFinal : " + this.isFinal + "\n");
		sb.append("isInterface : " + this.isInterface + "\n");
		sb.append("--------------------------------------\n");
		sb.append(super.toString());
		
		
		return sb.toString();
	
	}
}
